package com.dragon.modules.yuegou.query.member;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.member.GrowLogEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 成长值记录表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2021-12-20 16:11:48
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class GrowLogQuery extends GrowLogEntity implements Query<GrowLogEntity> {

    /** id查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 操作类型查询条件 */
	@JsonUnwrapped(prefix = "actionCode")
	private Condition<String> actionCodeCondition;

    /** 操作名称查询条件 */
	@JsonUnwrapped(prefix = "actionName")
	private Condition<String> actionNameCondition;

    /** 成长值（增加正数，反之负数）查询条件 */
	@JsonUnwrapped(prefix = "count")
	private Condition<Integer> countCondition;

    /** 会员ID查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 会员名称查询条件 */
	@JsonUnwrapped(prefix = "memberName")
	private Condition<String> memberNameCondition;

    /** 之前的成长值查询条件 */
	@JsonUnwrapped(prefix = "beforeCount")
	private Condition<Long> beforeCountCondition;

    /** 当前的成长值查询条件 */
	@JsonUnwrapped(prefix = "currentCount")
	private Condition<Long> currentCountCondition;

    /** 说明内容查询条件 */
	@JsonUnwrapped(prefix = "content")
	private Condition<String> contentCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 删除 0-未删除；1-已删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public GrowLogQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public GrowLogQuery(GrowLogEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public GrowLogQuery(GrowLogQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.actionCodeCondition != null) {
			this.actionCodeCondition = other.actionCodeCondition.copy();
		}
		if(other.actionNameCondition != null) {
			this.actionNameCondition = other.actionNameCondition.copy();
		}
		if(other.countCondition != null) {
			this.countCondition = other.countCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.memberNameCondition != null) {
			this.memberNameCondition = other.memberNameCondition.copy();
		}
		if(other.beforeCountCondition != null) {
			this.beforeCountCondition = other.beforeCountCondition.copy();
		}
		if(other.currentCountCondition != null) {
			this.currentCountCondition = other.currentCountCondition.copy();
		}
		if(other.contentCondition != null) {
			this.contentCondition = other.contentCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
	}

	@Override
	public QueryWrapper<GrowLogEntity> toQueryWrapper() {
		QueryWrapper<GrowLogEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (actionCodeCondition != null) {
			actionCodeCondition.toWrapper(wrapper, COL_ACTION_CODE);
		}
		if (actionNameCondition != null) {
			actionNameCondition.toWrapper(wrapper, COL_ACTION_NAME);
		}
		if (countCondition != null) {
			countCondition.toWrapper(wrapper, COL_COUNT);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (memberNameCondition != null) {
			memberNameCondition.toWrapper(wrapper, COL_MEMBER_NAME);
		}
		if (beforeCountCondition != null) {
			beforeCountCondition.toWrapper(wrapper, COL_BEFORE_COUNT);
		}
		if (currentCountCondition != null) {
			currentCountCondition.toWrapper(wrapper, COL_CURRENT_COUNT);
		}
		if (contentCondition != null) {
			contentCondition.toWrapper(wrapper, COL_CONTENT);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		return wrapper;
	}

	
	/**
	 * 构造并返回id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置id查询条件
	 * 
	 * @param idCondition id查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈id查询条件
	 * 
	 * @param busdIdCondition 商圈id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回操作类型查询条件
	 * 
	 * @return actionCodeCondition 操作类型查询条件
	 */
	public Condition<String> actionCode() {
		this.actionCodeCondition = new Condition<>();
		return this.actionCodeCondition;
	}
	
	/**
	 * 获取操作类型查询条件
	 * 
	 * @return actionCodeCondition 操作类型查询条件
	 */
	public Condition<String> getActionCodeCondition() {
		return actionCodeCondition;
	}

	/**
	 * 设置操作类型查询条件
	 * 
	 * @param actionCodeCondition 操作类型查询条件
	 */
	public void setActionCodeCondition(Condition<String> actionCodeCondition) {
		this.actionCodeCondition = actionCodeCondition;
	}

	/**
	 * 构造并返回操作名称查询条件
	 * 
	 * @return actionNameCondition 操作名称查询条件
	 */
	public Condition<String> actionName() {
		this.actionNameCondition = new Condition<>();
		return this.actionNameCondition;
	}
	
	/**
	 * 获取操作名称查询条件
	 * 
	 * @return actionNameCondition 操作名称查询条件
	 */
	public Condition<String> getActionNameCondition() {
		return actionNameCondition;
	}

	/**
	 * 设置操作名称查询条件
	 * 
	 * @param actionNameCondition 操作名称查询条件
	 */
	public void setActionNameCondition(Condition<String> actionNameCondition) {
		this.actionNameCondition = actionNameCondition;
	}

	/**
	 * 构造并返回成长值（增加正数，反之负数）查询条件
	 * 
	 * @return countCondition 成长值（增加正数，反之负数）查询条件
	 */
	public Condition<Integer> count() {
		this.countCondition = new Condition<>();
		return this.countCondition;
	}
	
	/**
	 * 获取成长值（增加正数，反之负数）查询条件
	 * 
	 * @return countCondition 成长值（增加正数，反之负数）查询条件
	 */
	public Condition<Integer> getCountCondition() {
		return countCondition;
	}

	/**
	 * 设置成长值（增加正数，反之负数）查询条件
	 * 
	 * @param countCondition 成长值（增加正数，反之负数）查询条件
	 */
	public void setCountCondition(Condition<Integer> countCondition) {
		this.countCondition = countCondition;
	}

	/**
	 * 构造并返回会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员ID查询条件
	 * 
	 * @param memberIdCondition 会员ID查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回会员名称查询条件
	 * 
	 * @return memberNameCondition 会员名称查询条件
	 */
	public Condition<String> memberName() {
		this.memberNameCondition = new Condition<>();
		return this.memberNameCondition;
	}
	
	/**
	 * 获取会员名称查询条件
	 * 
	 * @return memberNameCondition 会员名称查询条件
	 */
	public Condition<String> getMemberNameCondition() {
		return memberNameCondition;
	}

	/**
	 * 设置会员名称查询条件
	 * 
	 * @param memberNameCondition 会员名称查询条件
	 */
	public void setMemberNameCondition(Condition<String> memberNameCondition) {
		this.memberNameCondition = memberNameCondition;
	}

	/**
	 * 构造并返回之前的成长值查询条件
	 * 
	 * @return beforeCountCondition 之前的成长值查询条件
	 */
	public Condition<Long> beforeCount() {
		this.beforeCountCondition = new Condition<>();
		return this.beforeCountCondition;
	}
	
	/**
	 * 获取之前的成长值查询条件
	 * 
	 * @return beforeCountCondition 之前的成长值查询条件
	 */
	public Condition<Long> getBeforeCountCondition() {
		return beforeCountCondition;
	}

	/**
	 * 设置之前的成长值查询条件
	 * 
	 * @param beforeCountCondition 之前的成长值查询条件
	 */
	public void setBeforeCountCondition(Condition<Long> beforeCountCondition) {
		this.beforeCountCondition = beforeCountCondition;
	}

	/**
	 * 构造并返回当前的成长值查询条件
	 * 
	 * @return currentCountCondition 当前的成长值查询条件
	 */
	public Condition<Long> currentCount() {
		this.currentCountCondition = new Condition<>();
		return this.currentCountCondition;
	}
	
	/**
	 * 获取当前的成长值查询条件
	 * 
	 * @return currentCountCondition 当前的成长值查询条件
	 */
	public Condition<Long> getCurrentCountCondition() {
		return currentCountCondition;
	}

	/**
	 * 设置当前的成长值查询条件
	 * 
	 * @param currentCountCondition 当前的成长值查询条件
	 */
	public void setCurrentCountCondition(Condition<Long> currentCountCondition) {
		this.currentCountCondition = currentCountCondition;
	}

	/**
	 * 构造并返回说明内容查询条件
	 * 
	 * @return contentCondition 说明内容查询条件
	 */
	public Condition<String> content() {
		this.contentCondition = new Condition<>();
		return this.contentCondition;
	}
	
	/**
	 * 获取说明内容查询条件
	 * 
	 * @return contentCondition 说明内容查询条件
	 */
	public Condition<String> getContentCondition() {
		return contentCondition;
	}

	/**
	 * 设置说明内容查询条件
	 * 
	 * @param contentCondition 说明内容查询条件
	 */
	public void setContentCondition(Condition<String> contentCondition) {
		this.contentCondition = contentCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdByCondition 查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedByCondition 查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置删除 0-未删除；1-已删除查询条件
	 * 
	 * @param delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delTimeCondition 查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delByCondition 查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

}
